package com.hqyj.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table
public class Merchant {//商家表
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;

    private String name;//商家名字

    public Merchant(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Merchant() {
    }
}
